Integrand size = 23, antiderivative size = 62 \[ \int \frac {1}{\sqrt {\sec (c+d x)} \sqrt {1+\sec (c+d x)}} \, dx=-\frac {\sqrt {2} \text {arcsinh}\left (\frac {\tan (c+d x)}{1+\sec (c+d x)}\right )}{d}+\frac {2 \sqrt {\sec (c+d x)} \sin (c+d x)}{d \sqrt {1+\sec (c+d x)}} \]
[Out]
Time = 0.09 (sec) , antiderivative size = 62, normalized size of antiderivative = 1.00, number of steps used = 3, number of rules used = 3, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.130, Rules used = {3897, 3892, 221} \[ \int \frac {1}{\sqrt {\sec (c+d x)} \sqrt {1+\sec (c+d x)}} \, dx=\frac {2 \sin (c+d x) \sqrt {\sec (c+d x)}}{d \sqrt {\sec (c+d x)+1}}-\frac {\sqrt {2} \text {arcsinh}\left (\frac {\tan (c+d x)}{\sec (c+d x)+1}\right )}{d} \]
[In]
[Out]
Rule 221
Rule 3892
Rule 3897
Rubi steps \begin{align*} \text {integral}& = \frac {2 \sqrt {\sec (c+d x)} \sin (c+d x)}{d \sqrt {1+\sec (c+d x)}}-\int \frac {\sqrt {\sec (c+d x)}}{\sqrt {1+\sec (c+d x)}} \, dx \\ & = \frac {2 \sqrt {\sec (c+d x)} \sin (c+d x)}{d \sqrt {1+\sec (c+d x)}}+\frac {\sqrt {2} \text {Subst}\left (\int \frac {1}{\sqrt {1+x^2}} \, dx,x,-\frac {\tan (c+d x)}{1+\sec (c+d x)}\right )}{d} \\ & = -\frac {\sqrt {2} \text {arcsinh}\left (\frac {\tan (c+d x)}{1+\sec (c+d x)}\right )}{d}+\frac {2 \sqrt {\sec (c+d x)} \sin (c+d x)}{d \sqrt {1+\sec (c+d x)}} \\ \end{align*}
Time = 0.30 (sec) , antiderivative size = 90, normalized size of antiderivative = 1.45 \[ \int \frac {1}{\sqrt {\sec (c+d x)} \sqrt {1+\sec (c+d x)}} \, dx=\frac {2 \sqrt {-((-1+\sec (c+d x)) \sec (c+d x))} \sin (c+d x)+\sqrt {2} \arctan \left (\frac {\sqrt {2} \sqrt {\sec (c+d x)}}{\sqrt {1-\sec (c+d x)}}\right ) \tan (c+d x)}{d \sqrt {-\tan ^2(c+d x)}} \]
[In]
[Out]
Time = 0.97 (sec) , antiderivative size = 95, normalized size of antiderivative = 1.53
method | result | size |
default | \(-\frac {\sqrt {1+\sec \left (d x +c \right )}\, \left (\sqrt {2}\, \arctan \left (\frac {\sin \left (d x +c \right ) \sqrt {2}}{2 \left (\cos \left (d x +c \right )+1\right ) \sqrt {-\frac {1}{\cos \left (d x +c \right )+1}}}\right ) \sqrt {-\frac {1}{\cos \left (d x +c \right )+1}}+2 \cot \left (d x +c \right )-2 \csc \left (d x +c \right )\right )}{d \sqrt {\sec \left (d x +c \right )}}\) | \(95\) |
[In]
[Out]
Leaf count of result is larger than twice the leaf count of optimal. 144 vs. \(2 (56) = 112\).
Time = 0.30 (sec) , antiderivative size = 144, normalized size of antiderivative = 2.32 \[ \int \frac {1}{\sqrt {\sec (c+d x)} \sqrt {1+\sec (c+d x)}} \, dx=\frac {{\left (\sqrt {2} \cos \left (d x + c\right ) + \sqrt {2}\right )} \log \left (-\frac {2 \, \sqrt {2} \sqrt {\frac {\cos \left (d x + c\right ) + 1}{\cos \left (d x + c\right )}} \sqrt {\cos \left (d x + c\right )} \sin \left (d x + c\right ) + \cos \left (d x + c\right )^{2} - 2 \, \cos \left (d x + c\right ) - 3}{\cos \left (d x + c\right )^{2} + 2 \, \cos \left (d x + c\right ) + 1}\right ) + 4 \, \sqrt {\frac {\cos \left (d x + c\right ) + 1}{\cos \left (d x + c\right )}} \sqrt {\cos \left (d x + c\right )} \sin \left (d x + c\right )}{2 \, {\left (d \cos \left (d x + c\right ) + d\right )}} \]
[In]
[Out]
\[ \int \frac {1}{\sqrt {\sec (c+d x)} \sqrt {1+\sec (c+d x)}} \, dx=\int \frac {1}{\sqrt {\sec {\left (c + d x \right )} + 1} \sqrt {\sec {\left (c + d x \right )}}}\, dx \]
[In]
[Out]
none
Time = 0.38 (sec) , antiderivative size = 101, normalized size of antiderivative = 1.63 \[ \int \frac {1}{\sqrt {\sec (c+d x)} \sqrt {1+\sec (c+d x)}} \, dx=-\frac {\sqrt {2} \log \left (\cos \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right )^{2} + \sin \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right )^{2} + 2 \, \sin \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right ) + 1\right ) - \sqrt {2} \log \left (\cos \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right )^{2} + \sin \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right )^{2} - 2 \, \sin \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right ) + 1\right ) - 4 \, \sqrt {2} \sin \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right )}{2 \, d} \]
[In]
[Out]
\[ \int \frac {1}{\sqrt {\sec (c+d x)} \sqrt {1+\sec (c+d x)}} \, dx=\int { \frac {1}{\sqrt {\sec \left (d x + c\right ) + 1} \sqrt {\sec \left (d x + c\right )}} \,d x } \]
[In]
[Out]
Timed out. \[ \int \frac {1}{\sqrt {\sec (c+d x)} \sqrt {1+\sec (c+d x)}} \, dx=\int \frac {1}{\sqrt {\frac {1}{\cos \left (c+d\,x\right )}+1}\,\sqrt {\frac {1}{\cos \left (c+d\,x\right )}}} \,d x \]
[In]
[Out]